﻿using System;

// Token: 0x02000316 RID: 790
public class ExcelDataSeek
{
	// Token: 0x060013DF RID: 5087 RVA: 0x0008CBD8 File Offset: 0x0008ADD8
	public ExcelDataSeek(ExcelData data)
	{
		this.data = data;
		this.cell = 0;
		this.row = 0;
	}

	// Token: 0x170001E3 RID: 483
	// (get) Token: 0x060013E0 RID: 5088 RVA: 0x0008CBF8 File Offset: 0x0008ADF8
	// (set) Token: 0x060013E1 RID: 5089 RVA: 0x0008CC00 File Offset: 0x0008AE00
	public ExcelData data { get; private set; }

	// Token: 0x170001E4 RID: 484
	// (get) Token: 0x060013E2 RID: 5090 RVA: 0x0008CC0C File Offset: 0x0008AE0C
	// (set) Token: 0x060013E3 RID: 5091 RVA: 0x0008CC14 File Offset: 0x0008AE14
	public int cell { get; private set; }

	// Token: 0x170001E5 RID: 485
	// (get) Token: 0x060013E4 RID: 5092 RVA: 0x0008CC20 File Offset: 0x0008AE20
	// (set) Token: 0x060013E5 RID: 5093 RVA: 0x0008CC28 File Offset: 0x0008AE28
	public int row { get; private set; }

	// Token: 0x170001E6 RID: 486
	// (get) Token: 0x060013E6 RID: 5094 RVA: 0x0008CC34 File Offset: 0x0008AE34
	public bool isEndCell
	{
		get
		{
			return this.cell >= this.data.list.Count;
		}
	}

	// Token: 0x170001E7 RID: 487
	// (get) Token: 0x060013E7 RID: 5095 RVA: 0x0008CC54 File Offset: 0x0008AE54
	public bool isEndRow
	{
		get
		{
			bool result = true;
			if (this.cell < this.data.list.Count && this.row < this.data.list[this.cell].list.Count)
			{
				result = false;
			}
			return result;
		}
	}

	// Token: 0x060013E8 RID: 5096 RVA: 0x0008CCAC File Offset: 0x0008AEAC
	public int SetCell(int set)
	{
		this.cell = set;
		return set;
	}

	// Token: 0x060013E9 RID: 5097 RVA: 0x0008CCC4 File Offset: 0x0008AEC4
	public int SetRow(int set)
	{
		this.row = set;
		return set;
	}

	// Token: 0x060013EA RID: 5098 RVA: 0x0008CCDC File Offset: 0x0008AEDC
	public int NextCell(int next)
	{
		return this.cell += next;
	}

	// Token: 0x060013EB RID: 5099 RVA: 0x0008CCFC File Offset: 0x0008AEFC
	public int NextRow(int next)
	{
		return this.row += next;
	}

	// Token: 0x060013EC RID: 5100 RVA: 0x0008CD1C File Offset: 0x0008AF1C
	public bool SearchCell(int next = 0, bool isErrorCheck = false)
	{
		bool result = false;
		this.cell += next;
		while (this.cell < this.data.list.Count)
		{
			if (this.row < this.data.list[this.cell].list.Count && this.data.list[this.cell].list[this.row] != string.Empty)
			{
				result = true;
				break;
			}
			this.cell++;
		}
		return result;
	}

	// Token: 0x060013ED RID: 5101 RVA: 0x0008CDD0 File Offset: 0x0008AFD0
	public bool SearchRow(int next = 0, bool isErrorCheck = false)
	{
		bool result = false;
		this.row += next;
		if (this.cell < this.data.list.Count)
		{
			while (this.row < this.data.list[this.cell].list.Count)
			{
				if (this.data.list[this.cell].list[this.row] != string.Empty)
				{
					result = true;
					break;
				}
				this.row++;
			}
		}
		return result;
	}
}
